﻿using System;
using System.Collections.Generic;
using System.Text;
using com.clinica.business.BE.estadistica;
using com.clinica.business.BE.actdocpago;
using com.clinica.business.BE.actcliente;
using com.clinica.business.entities;
using com.clinica.dao.sql;


namespace com.clinica.DL.sql.estadistica
{
    public static class ClienteDL
    {
        public static List<ClienteBE> ObtenerClientes(int Tipodoc, string Nomnbre)
        {
            List<ClienteBE> lst = new List<ClienteBE>();
            Comando cmd = new Comando();
            cmd.CommandName = "PRC_BUSCARCLIENTE";
            cmd.AddParameter("@Tipo", Tipodoc);
            cmd.AddParameter("@RazonSocial", Nomnbre.Trim());
            lst = (List<ClienteBE>)ElManager.EjecutarStore<ClienteBE>(cmd, DataBase.CLINICA_WEB);
            return lst;
        }

    }
}
